﻿using SUNRPA.CONTROLS.IMPL.domain;
using SUNRPA.CONTROLS.IMPL.domain.flowItemParam;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using System.Collections.Concurrent;

namespace SUNRPA.CONTROLS.IMPL.controls {
    public class OpenInputDiaNAction:BaseControlActions {
        public override int Execute(int currentIndex, FlowItem item, ConcurrentDictionary<string, ConcurrentDictionary<string, RPAVariableDefineWrapper>> globleData, List<FlowItem> flowItems) {
            OpenInputDiaNParam? param = item.ControlParam as OpenInputDiaNParam;
            param.delegateObj.Dispatcher.Invoke(param.actionDelegate,new object[]{ item, globleData });
            return currentIndex;
        }
    }
}
